module.exports = (sequelize, Sequelize)=>{
    const Daily_task = sequelize.define("daily_task", 
    {
        user_mail: {
            type: Sequelize.STRING,
            primaryKey: true,
        },
        tech_id: {
            type: Sequelize.INTEGER,
            primaryKey: true,
        },
        date: {
            type: Sequelize.DATEONLY,
            primaryKey: true,
        }
    },{
        indexes:[{
            unique: false,
            fields: ['user_mail']
        }]
    }, {
        freezeTableName: true,
        timestamps: false,
    });
    Daily_task.removeAttribute('id');
    Daily_task.removeAttribute('createdAt');
    Daily_task.removeAttribute('updatedAt');
    return Daily_task
}